package com.crr.mapper;

import com.crr.bean.ProductCategory;
import com.crr.common.crud.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface ProductCategoryMapper extends BaseMapper<ProductCategory> {
    /**
     * 根据父id查询子分类
     * @param pid 父id
     * @return
     */
    List<Map> queryChildren(int pid);
}
